import Vue from 'vue'
import App from './App.vue'
//引入路由模块
import VueRouter from 'vue-router';
import iView from 'iview';
import 'iview/dist/styles/iview.css';    // 使用 CSS

import axios from 'axios'
import VueAxios from 'vue-axios'

import VueQuillEditor from 'vue-quill-editor'



//引入store
import {store} from './store'
//引入静态路由表（配置表量）
import {routes} from './routes';

//使用
Vue.use(VueRouter);
Vue.use(iView);
Vue.use(VueAxios, axios)
Vue.use(VueQuillEditor)

//将路由变量实例化成路由对象
const router =new VueRouter({
	routes,
	mode:"history" //mdoe可以已设置成history 也可以设置成hash
})



new Vue({
  el: '#app',
	router,
	store,
  render: h => h(App)
})
